package org.zxl.springbootdemo.quartz.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class AutowiredTask1 {
    private static final Logger logger = LoggerFactory.getLogger(AutowiredTask1.class);

    @Scheduled(cron = "30/10 * * * * ? ")
    public void some1() {
        logger.info("AutowiredTask1 some1 start");
        logger.info("AutowiredTask1 some1 end");
    }


    @Scheduled(cron = "35/10 * * * * ? ")
    public void some2() {
        logger.info("AutowiredTask1 some2 start");
        logger.info("AutowiredTask1 some2 end");
    }
}
